package com.teach.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.teach.entity.Album;

public interface AlbumMapper {
    int deleteByPrimaryKey(Long albumId);

    int insert(Album record);

    int insertSelective(Album record);

    Album selectByPrimaryKey(Long albumId);

    int updateByPrimaryKeySelective(Album record);

    int updateByPrimaryKey(Album record);
    
    @Select("select * from album where ALBUM_USER_NAME=#{userName} order by ALBUM_CREATE_TIME desc")
    List<Album> listByUserName(@Param("userName") String userName);
}